package com.huidu.bitrade.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huidu.bitrade.entity.MemberLoan;
import com.huidu.bitrade.query.MemberLoanPageQuery;
import com.huidu.bitrade.vo.MemberLoanVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberLoanMapper extends BaseMapper<MemberLoan> {

    Page<MemberLoanVO> selectVoList(IPage page, @Param("memberId") Long memberId, @Param("type") Integer type);
    List<MemberLoanVO> pageList(IPage page, @Param("param") MemberLoanPageQuery param);
    List<MemberLoan> selectUnderway(@Param("memberId") Long memberId);

}
